function modifying(obj,plaId){
    var plaResult = $("#plaResult").val();
    $.ajax({
        url:"/crm/plan/executesave",
        data:{"plaResult" : plaResult,"plaId" : plaId},
        type:"POST",
        dataType:"JSON",
        success:function(data){
            if (data.result == "true"){
                alert("保存成功！");
                window.location.reload();
            } else{
                alert("保存失败！");
            }
        },
        error:function(data){
            alert("出现异常！");
        }
    });
}

function formulate(chcId){
    window.location.href="/crm/plan/formulate?chcId="+chcId;
}

function editStatus(chcStatus,chcId) {
    $.ajax({
        type:"GET",
        url:"/crm/plan/editStatus",
        data:{"chcStatus":chcStatus,"chcId":chcId},
        dataType:"json",
        success:function(data){
            if(data.result == "true"){
                alert("操作成功");
                window.location.href="/crm/plan/list";
            }else{
                alert("对不起，操作失败");
            }
        },
        error:function(data){
            alert("系统异常！");
        }
    });

}
